<!DOCTYPE html>
<html>

<head>
    <title>健康档案</title>
    <%- include('./_global/baseLibsJKDA') %>
        <script src="/static/js/index/index.js"></script>
        <script src="/static/js/<%=type%>/pageUrl.js"></script>
        <link rel="stylesheet" href="/static/css/jkda/page-main.css">
        <link rel="stylesheet" href="/static/css/jkda/reset.css">
        <link rel="stylesheet" href="/static/css/public.css">
        <link rel="stylesheet" href="/static/css/jkda/public.css">



        <style type="text/css">
            html,
            body {
                width: 100%;
                height: 100%;
                margin: 0px;
            }

            body {
                transform: perspective(1400px) matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
                transform-style: preserve-3d;
                /* background-color: transparent; */
            }

            a:link {
                text-decoration: none;
            }
        </style>
</head>

<body>
    <!-- header start -->
    <header class="header-box grey fixed">
        <div class="header-content">
            <div class="left-tool">
                <a class="back" href="javascript:void(0);">
                    <i class="iconfont icon-back"></i>
                </a>
            </div>
            <div class="title">健康档案</div>
        </div>
    </header>
    <!-- header end -->
    <!-- <aside class="person-info-top">
    <a href="javascript:void(0)">
        <div class="img-header-wrap"><img id="userHeader" src="/static/images/jkda/user.png"/></div>
        <div class="text-wrap">
            <p>
                <span class="name" id="name">张三</span>
                <span class="span-sex" id="gender">男</span>
                <span class="span-age" id="age">32</span>
            </p>
            <p><span id="linkmanTel">12345678909</span></p>
        </div>
    </a>
</aside> -->
    <aside class="health-file-tool">
        <ul class="health-file-list clearfix">
            <div id="menu1" class="runDiv" style="position:relative" url="jzjl">
                <div>
                    <img class="icon-list" src="/static/images/jkda/icon1.png">
                    <h2 class="span-text">就诊记录</h2>
                </div>
            </div>
            <div id="menu4" class="runDiv" style="position:relative" url="jyjc">
                <div>
                    <img class="icon-list" src="/static/images/jkda/icon2.png">
                    <h2 class="span-text">检验检查报告</h2>
                </div>
            </div>
            <div id="menu7" class="runDiv" style="position:relative" url="sfjl">
                <div>
                    <img class="icon-list" src="/static/images/jkda/icon5.png">
                    <h2 class="span-text">随访记录</h2>
                </div>
            </div>
            <!-- <div id="" class="runDiv" style="position:relative" url="ssjl" >
                <div>
                    <img class="icon-list" src="/static/images/jkda/icon4.png">
                    <h2 class="span-text">手术记录</h2>
                </div>
        </div>
        <div id="menu5" class="runDiv" style="position:relative" url="tjbg">
            <div>
                <img class="icon-list" src="/static/images/jkda/icon3.png">
                <h2 class="span-text">体检报告</h2>
            </div>
        </div> 
        <div id="menu6" class="runDiv" style="position:relative" url="mbbg">
            <div>
                <img class="icon-list" src="/static/images/jkda/icon6.png">
                <h2 class="span-text">慢病报告</h2>
            </div>
        </div> -->
        </ul>
    </aside>
</body>

<script type="text/javascript">
     
    var jkcsUserInfo = StoreCache.getCache("jkcsUserInfo");
    //openuserid
    var  serviceId = $.QuickUrlUtils.getRequest("openuserid");
    //如果有openuserid参数表示外部调用健康档案
    if(!StringUtils.isEmpty(serviceId)){
        var ua = navigator.userAgent.toLowerCase();
        //根据ua判断支付宝过来的链接
          if(ua.match(/AlipayClient/i) == 'alipayclient'){
                
            var params = {
                req：{
                      "body": {
                        "serviceId": serviceId,
                        "serviceType": "zhifubao"
                      },
                      "head": {
                        "tranCode": ""
                      },
                      "tail": {
                        "sign": ""
                      }
                    }

                };
              //查询用户信息
              $.QuickRemote.AjaxJson({
                funcName:"/api/gzd/auth/service/app/getUser"
                ,callback:function(data){ 
                   jkcsUserInfo = data.body;


                },params:params
             });

            }    
    }

    
    // var uri_service_queryTx = '/api/gzd/jrlb/queryTx';
    //var jkdaInfo = true;  
    var page_mbView = (function ($, page_mbView) {
        page_mbView.init = function (cfg) {
            $(".health-file-list").on("click", ".runDiv", function () {
                // var thisZXWYH = $("#userHeader").data("thisZXWYH")
                var url = $(this).attr("url");

                $.pageSwitch.goToUrl("jkda", url, "ZXWYH=" + jkcsUserInfo.sfzh);
            });

        }

       









        return page_mbView;

    })(jQuery, {});



</script>

</html>

